package br.com.gecandango.service.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import br.com.gecandango.beans.FolhaEtapas;
import br.com.gecandango.beans.FichaEspecialidades;
import br.com.gecandango.service.FolhaEtapasService;

public class FolhaEtapasServiceImpl extends HibernateDaoSupport implements
	FolhaEtapasService {
	
	public void save(FichaEspecialidades bean) {
		getHibernateTemplate().saveOrUpdate(bean);
	}
	public List<FolhaEtapas> list() {
		return getHibernateTemplate().find("from FolhaEtapas");
	}
	
	public FolhaEtapas find(Long id) {
		return (FolhaEtapas)getHibernateTemplate().find("from FolhaEtapas where id=?", id);
	}
	
	public void delete(FolhaEtapas bean) {
		getHibernateTemplate().delete(bean);
	}
	public void avaliarEtapa(FolhaEtapas bean) {
		getHibernateTemplate().saveOrUpdate(bean);
	}
	public void addEspecialidadeSocio(FolhaEtapas bean) {
		getHibernateTemplate().saveOrUpdate(bean);
	}
}
